package com.yangrd.airship.generator.support.impl;

import com.yangrd.airship.generator.support.PageGeneratorWriter;

import java.io.Writer;
import java.util.Arrays;
import java.util.List;

/**
 * @author yangrd
 * @date 2021/11/10
 */
public abstract class AbstractPageGeneratorWriter implements PageGeneratorWriter {
    @Override
    public List<Writer> listWriter(TableGeneratorWriterContext context) {
        return Arrays.asList(getWriter(context));
    }

    /**
     * getWriter
     * @param context
     * @return
     */
    public abstract Writer getWriter(TableGeneratorWriterContext context);
}
